package com.wx.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author DKH
 * @version 1.0.0
 * @createTime 2022年08月25日 08:12:00
 */
@Data
@Component
public class TemplateMessage {

    private String touser;

    private String template_id;

    private final String url = "http://weixin.qq.com/download";

    private String topcolor;

    private TreeMap<String, TreeMap<String, String>> data;

    public static TreeMap<String, String> item(String value, String color) {
        TreeMap<String, String> params = new TreeMap<String, String>();
        params.put("value", value);
        params.put("color", color);
        return params;
    }

}

